#ifndef SPLINE_H
#define SPLINE_H

#include <mycanvas.h>
#include <QVector2D>
class spLine
{
    //prueba
public:
    spLine(QList<QVector2D> nodos, int _n);
    ~spLine();
    void pintarFuncion(MyCanvas* canvas);

private:
    void obtenerZs();
    double calcC(int i);
    double calcB(int i);
    double calcA(int i);
    double evaluarSi(double x);
    void calcularFunciones();
    double* z;
    double* h;
    double* A;
    double* B;
    double* C;
    QList<QVector2D> nodos;
    int n;
};

#endif // SPLINE_H
